﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace HR.Appointments.Service.DataAccessLayer
{
    /// <summary>
    /// Gets the reserved time from the database
    /// </summary>
    public interface IReservedTimeDAO
    {
        /// <summary>
        /// Delete the reserved time for the database
        /// </summary>
        /// <param name="reservedtimeId">Reserved time identifier</param>
        void Delete(int reservedtimeId);

        /// <summary>
        /// Inserts a reserved entity to the database
        /// </summary>
        /// <param name="entity">A valid entity</param>
        void Insert(ReservedTimeEntity entity);

        /// <summary>
        /// List all reserved time for a specific company that are valid.  
        /// </summary>
        /// <param name="companyId">Company identifier</param>
        /// <returns>A list of loaded enities</returns>
        List<ReservedTimeEntity> GetByCompanyId(int companyId);

        /// <summary>
        /// List all reserved time for a company by a specific date
        /// </summary>
        /// <param name="companyId">Company identifier</param>
        /// <param name="date">Date to check for reserved time</param>
        /// <returns>A list of loaded enities</returns>
        List<ReservedTimeEntity> GetByDate(int companyId, DateTime date);
    }
}
